import {_decorator, Component} from 'cc';
import {Constants} from "db://assets/scripts/common/Constants";
import {Router} from "db://assets/scripts/common/Router";

const {ccclass, property} = _decorator;

/**
 * 登录界面控制器
 */
@ccclass('LoginController')
export class LoginController extends Component {

    start() {
        console.log("LoginController");

        // 记录登录时间
        Constants.LOGIN_TIME = Date.now();

        // 导航到战斗场景
        Router.getInstance().navigateToFight();
    }
}